<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

//
// Route::get('think', function () {
//     return 'hello,ThinkPHP5!';
// });

// Route::get('/','index/hello');
// Route::get('','index/hello');

// Route::resource('blog','index/blog');

Route::get('hello/[:name]', 'index/index/index');

// Route::get('hello/[:name]', 'index/index/hello');
// Route::get('hello/:name', 'index/index/hello')->pattern(['name' => '\d+']);
// Route::get('hello', 'index/index/hello');

// Route::get('hello/:name', 'index/index/hello')->option('rule','admin');

// Route::get('hello/[:name]', 'index/index/hello')->pattern('name','\d+');

// Route::get('kaka/[:name]', 'index/index/kaka');

// Route::option('ext','html');

// Route::rule('kakas/:name', 'index/index/kaka','GET');

return [
    // '__rest__' => [
    //     'blog/[:name]' => 'index/blog',
    // ]
];
